﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.DBMAPPING;
using Project.IDAO;

namespace Project.DAO
{
    public class CategoryListDAO : ICategoryListDAO
    {
        public IEnumerable<SP_CATEGORY_LOADCATEGORYLISTResult> LoadCategoryList()
        {
            // Declare variable to access database
            DbMappingDataContext database = new DbMappingDataContext();
            // Return a list of products
            return database.SP_CATEGORY_LOADCATEGORYLIST();
        }
    }
}
